//
// Created by liuwenwen on 12/17/2019.
//

//建立一个文件并写入内容
#include <fstream>
using namespace std;

int main()
{
    ofstream exampleFile("./../example.txt");
    if (exampleFile.is_open())
    {
        exampleFile << "This is a line.\n";
        exampleFile << "This is another line.\n";
        exampleFile.close();
    }
    return 0;
}